package com.hmkj.core.model.order;

import com.hmkj.core.po.operate.Agent;
import com.hmkj.core.po.order.OrderSimulate;
import com.hmkj.core.po.user.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.function.Consumer;

@Data
public class OrderSimulateModel extends OrderSimulate {
    private User u;

    private User iu;

    private Agent ag;

    /**
     * 汇率
     */
    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    /**
     * 下单笔数
     */
    @ApiModelProperty(value = "下单笔数")
    private Integer orderNum;

    /**
     * 总盈亏点数
     */
    @ApiModelProperty(value = "总盈亏点数")
    private BigDecimal totalProfitPoint;

    /**
     * 平均每单盈亏金额
     */
    @ApiModelProperty(value = "平均每单盈亏金额")
    private BigDecimal averageProfit;

    /**
     * 当前跟单人数
     */
    @ApiModelProperty(value="当前跟单人数")
    private Integer followNum;

    /**
     * 每点合约价值
     */
    @ApiModelProperty(value = "每点合约价值")
    private  BigDecimal pointVlaue;
    /**
     * 最小波动点
     */
    @ApiModelProperty(value = "最小波动点")
    private  BigDecimal waveMin;
    /**
     * 最新价
     */
    @ApiModelProperty(value = "最新价")
    private  BigDecimal lastPrice;

    public OrderSimulateModel(){}

    public OrderSimulateModel(Consumer<OrderSimulateModel> consumer){
        consumer.accept(this);
    }

}
